import { createApp } from 'vue'
import App from './App.vue'
import Router from './router/index'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import '@/assets/icon/iconfont.js'
import Store from './store/index'

const app = createApp(App);
const nowDate = function(now){
    let year = now.getFullYear(); //年份
    let month = now.getMonth() + 1; //月份(0-11)
    let day = now.getDate();  //天数(1-31)
    let hour = now.getHours();  //小时数(0-23)
    let minute = now.getMinutes();  //分钟数(0-59)
    return (
      year + "-" + month + "-" + day + "-" + hour + ":" + minute
    )
  }
app.provide('nowDate',nowDate);
app.use(Router);
app.use(ElementPlus)
app.use(Store)

app.mount('#app')

